import edu.wsu.KheperaSimulator.RobotController;


public abstract class Proportional extends RobotController {
	
	//Variable for scaling speed
	protected int m_highestVal;
	
	public void handleWallContact() {
		if (getDistanceValue(2) > 50) setMotorSpeeds(2, -5); else
		if (getDistanceValue(3) > 50) setMotorSpeeds(-5, 2); else
		if (getDistanceValue(1) > 50) setMotorSpeeds(5, -5); else
		if (getDistanceValue(4) > 50) setMotorSpeeds(-5, 5); else
		if (getDistanceValue(0) > 50) setMotorSpeeds(5, -5); else
		if (getDistanceValue(5) > 50) setMotorSpeeds(-5, 5);
	}

}
